package cn.wolfcode.p2p.base.service;

import cn.wolfcode.p2p.base.domain.UserInfo;

public interface IUserInfoService {
    int save(UserInfo userInfo);

    int update(UserInfo userInfo);

    UserInfo get(Long id);

    void basicInfoSave(UserInfo userInfo);

    /**
     * 获取当前用户
     * @return
     */
    UserInfo getCurrent();

    /**
     * 根据key去检测邮箱
     * @param key
     */
    void bindEmail(String key);
}
